package datastructure.day02;

/**
 * @author: Gan
 * @date 2021/4/29 0029 20:07
 * @description:
 **/
public class TestStackLinked {
    public static void main(String[] args) {
        StackLinked stackLinked = new StackLinked();
        stackLinked.push("movie");
        stackLinked.push("3");
        stackLinked.push("play");
        //栈顶元素
        stackLinked.peek();
        System.out.println(stackLinked.pop());
        System.out.println(stackLinked.getStackDepth());
        System.out.println(stackLinked);

    }
}
